from selenium import webdriver
from time import sleep
from selenium.webdriver.common.by import By

driver=webdriver.Edge()
driver.maximize_window()
driver.get('https://mail.163.com/')
sleep(5)

#进入框架
f=driver.find_element(By.XPATH,'//iframe[starts-with(@id,"x-URS-iframe174340")]')
driver.switch_to.frame(f)
sleep(5)

#输入账号
driver.find_element(By.NAME,'email').send_keys('17733058407')
sleep(5)

#输入密码
driver.find_element(By.NAME,'password').send_keys('LCf10140910')
sleep(5)

#点击登录
driver.find_element(By.XPATH,'//*[@id="dologin"]').click()
sleep(5)